package com.hao;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;


@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class })
//添加这个注解,表示当前微服务是Nacos的一个注册服务的客户端,可以访问Nacos里面的别的服务
@EnableDiscoveryClient
// 表示当前服务中包含了feign的客户端,参数是feign的接口的定义包路径
@EnableFeignClients(basePackages ="com.hao.feign")
public class RyFeignApplication {
        public static void main(String[] args) {
            SpringApplication.run(RyFeignApplication.class, args);
        }
}
